home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts26-11
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: hungarian syntax
- Date: Wed, 06 Mar 96 07:15:58 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4hje35$elu@sam.inforamp.net>
- References: <4hid64$h4k@aldebaran.sct.fr>
- NNTP-Posting-Host: ts26-11.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <4hid64$h4k@aldebaran.sct.fr>,
- escali_m@worldnet.net (Marc Escalier) wrote:
- >Hello, i'm looking for information about the hungarian syntax in c and
- >c++
-
- I haven't found any good books that adequately describe it, but I'll give you
- a run over. All your identifier have prefixes that describe their types.
- Thus a character would have the prefix c.
-
- Examples:
- char cUIExempt;
- char cMaritalStatus;
- char * szName;
- int iAge;
-
- This way you know a type even when the identifiers definition is hidden in
- hundreds of lines of spaghetti.
-
- Agrivar
-
- PS Here's a list of hungarian prefixes that I picked up one time.
-
- a Atom
- b BOOL (integer)
- by BYTE (unsigned character)
- c Character (ANSI ASCII 8-bit)
- dw DWORD (unsigned long)
- fn Function
- h HANDLE (unsigned integer)
- i Integer
- id Integral id value
- l LONG (long)
- lp Long (far) pointer
- lpsz Long pointer to null-terminated string
- n Short integer
- np Near (short) pointer
- p Pointer
- pfn Function pointer
- pst Pointer to a structure
- psz Pointer to null-terminated string
- pv Pointer to void
- s String
- sz NULL (/0) terminated string
- u Unsigned
- v Void
- w WORD (unsigned integer)
- w Character (Unicode 16-bit)
- x Short (when used as the x coordinate)
- y Short (when used as the y coordinate)
-